package com.youlai.boot.sport.model.form;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import jakarta.validation.constraints.*;

/**
 * 运动数据表单对象
 *
 * @author cuisheng
 * @since 2025-03-31 12:41
 */
@Getter
@Setter
@Schema(description = "运动数据表单对象")
public class SportDataForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Integer id;

    @NotBlank(message = "不能为空")
    @Size(max=50, message="长度不能超过50个字符")
    private String sportType;

    @NotNull(message = "不能为空")
    private Double caloriesPerHour;


}
